package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 删除流程定义请求对象
 * @date 2019-11-05 15:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "删除流程定义模板", description = "删除流程定义请求对象")
public class DeleteProcessReq extends BaseReqObj {

    private static final long serialVersionUID = 6627992304465272878L;

    @ApiModelProperty(value = "流程部署ID", notes = "流程部署ID", dataType = "String", required = true)
    @NotBlank(message = "流程部署ID不能为空")
    private String deploymentId;

    @ApiModelProperty(value = "级联删除标志 true/false\ntrue 会将该流程定义相关的全部流程实例一并删除", notes = "级联删除标志", dataType = "boolean",
        required = true, allowableValues = "true, false")
    private boolean cascade = false;
}
